/*
Jack Morris
11/20/14
Page 50
Assinment 5
*/
#include <stdio.h>

int main()
{ // this is so confuzing to ME that i can't even leave comments
  int cow, dog, pig, moo, woof, oink, horse, nay, duck, quack;
  int umm, so, bruh, swag, yolo, foo, bar, doge, such, many, wow, much, magic;
  int very, dood, tazo;
  printf("Enter the numbers from 1 to 16 in any order:");
  scanf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d"
  ,&umm, &so, &bruh, &swag, &yolo, &foo, &bar, &doge, &such,&many, &wow, &much,
  &magic, &very, &dood, &tazo);
  printf("%d    %d    %d    %d \n%d     %d   %d   %d \n%d     %d   %d    %d \n%d    %d   %d    %d"
  ,umm, so, bruh, swag, yolo, foo, bar, doge, such, many, wow, much, magic,
  very, dood, tazo);
  cow = umm + so + bruh + swag;
  dog = yolo + foo + bar + doge;
  pig = such + many + wow + much;
  moo = magic + very + dood + tazo;
  woof = umm + yolo + such + magic;
  oink = so + foo + many + very;
  horse = bruh + bar + wow + dood;
  nay = swag + doge + much + tazo;
  duck = umm + foo + wow + tazo;
  quack = swag + bar + many + magic;
  printf("\n\nRow sums: %d %d %d %d\n", cow, dog, pig, moo);
  printf("Column sums: %d %d %d %d\n", woof, oink, horse, nay);
  printf("Diagonal sums: %d %d", duck, quack);
  return(0);
}